<template>
  <div class="back-top" @click="topClick">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'BackTop',
  methods: {
    topClick () {
      this.$emit('backTop')
    }
  }
}
</script>

<style lang="scss" scoped>
.back-top {
  position: fixed;
  right: 10px;
  bottom: 60px;

  img {
    width: 43px;
    height: 43px;
  }
}
</style>
